use chrono::NaiveDateTime;

#[derive(Queryable, Debug, Serialize)]
pub struct Code {
    pub id: i32,
    pub uid: i32,
    pub class: String,
    pub name: String,
    pub cover: Option<String>,
    pub content: String,
    pub remark: Option<String>,
    pub created_at: Option<NaiveDateTime>,
    pub updated_at: Option<NaiveDateTime>,
}

